package com.springboot_intr2.mapper;

import com.springboot_intr2.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface DeptMapper {
    @Select("select * from dept")
    public List<Dept> getAll();

    @Select("select * from dept where deptno = #{deptno}")
    public Dept getOne(Integer deptno);

    public int save(Dept dept);
}
